<?php
require('config.php');

		$sql="select * from `".$oto."_integral` where `goodsFlag`='1' and `isSale`='1' order by saleCount DESC LIMIT 10";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		echo json_encode($person_info);
?>